package com.dianping.cat.home.alert.summary.entity;

import com.dianping.cat.home.alert.summary.BaseEntity;
import com.dianping.cat.home.alert.summary.IVisitor;
import java.util.Date;








public class Alert
  extends BaseEntity<Alert>
{
  private Date m_alertTime;
  private String m_type;
  private String m_metric;
  private String m_context;
  private String m_domain;
  private Integer m_count;

  public void accept(IVisitor visitor) { visitor.visitAlert(this); }



  public boolean equals(Object obj) {
    if (obj instanceof Alert) {
/*  30 */       Alert _o = (Alert)obj;

      if (!equals(getAlertTime(), _o.getAlertTime())) {
/*  33 */         return false;
      }

      if (!equals(getType(), _o.getType())) {
/*  37 */         return false;
      }

/*  40 */       if (!equals(getMetric(), _o.getMetric())) {
/*  41 */         return false;
      }

/*  44 */       if (!equals(getContext(), _o.getContext())) {
/*  45 */         return false;
      }

/*  48 */       if (!equals(getDomain(), _o.getDomain())) {
/*  49 */         return false;
      }

/*  52 */       if (!equals(getCount(), _o.getCount())) {
/*  53 */         return false;
      }


/*  57 */       return true;
    }

/*  60 */     return false;
  }


/*  64 */   public Date getAlertTime() { return this.m_alertTime; }



/*  68 */   public String getContext() { return this.m_context; }



/*  72 */   public Integer getCount() { return this.m_count; }



/*  76 */   public String getDomain() { return this.m_domain; }



/*  80 */   public String getMetric() { return this.m_metric; }



/*  84 */   public String getType() { return this.m_type; }



  public int hashCode() {
/*  89 */     int hash = 0;

/*  91 */     hash = hash * 31 + ((this.m_alertTime == null) ? 0 : this.m_alertTime.hashCode());
/*  92 */     hash = hash * 31 + ((this.m_type == null) ? 0 : this.m_type.hashCode());
/*  93 */     hash = hash * 31 + ((this.m_metric == null) ? 0 : this.m_metric.hashCode());
/*  94 */     hash = hash * 31 + ((this.m_context == null) ? 0 : this.m_context.hashCode());
    hash = hash * 31 + ((this.m_domain == null) ? 0 : this.m_domain.hashCode());
/*  96 */     return hash * 31 + ((this.m_count == null) ? 0 : this.m_count.hashCode());
  }




  public void mergeAttributes(Alert other) {
/* 103 */     if (other.getAlertTime() != null) {
/* 104 */       this.m_alertTime = other.getAlertTime();
    }

/* 107 */     if (other.getType() != null) {
/* 108 */       this.m_type = other.getType();
    }

/* 111 */     if (other.getMetric() != null) {
/* 112 */       this.m_metric = other.getMetric();
    }

/* 115 */     if (other.getContext() != null) {
/* 116 */       this.m_context = other.getContext();
    }

/* 119 */     if (other.getDomain() != null) {
/* 120 */       this.m_domain = other.getDomain();
    }

/* 123 */     if (other.getCount() != null) {
/* 124 */       this.m_count = other.getCount();
    }
  }

  public Alert setAlertTime(Date alertTime) {
/* 129 */     this.m_alertTime = alertTime;
/* 130 */     return this;
  }

  public Alert setContext(String context) {
/* 134 */     this.m_context = context;
/* 135 */     return this;
  }

  public Alert setCount(Integer count) {
/* 139 */     this.m_count = count;
/* 140 */     return this;
  }

  public Alert setDomain(String domain) {
/* 144 */     this.m_domain = domain;
/* 145 */     return this;
  }

  public Alert setMetric(String metric) {
/* 149 */     this.m_metric = metric;
/* 150 */     return this;
  }

  public Alert setType(String type) {
/* 154 */     this.m_type = type;
/* 155 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/alert/summary/entity/Alert.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */